// 入口文件
import React from 'react'
import ReactDom from 'react-dom'
import App from './App'

import store from './redux/store'
import { Provider } from 'react-redux'

import { ConfigProvider } from 'antd'
import zhCN from 'antd/lib/locale/zh_CN';

import memoryUtils from './utils/memoryUtils'
import storageUtils from './utils/storageUtils'

//读取local中保存的user，保存在内存中
const user = storageUtils.getUser()
memoryUtils.user = user


ReactDom.render(
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <App />
    </Provider>
  </ConfigProvider>,
  document.getElementById('root')
)